package com.mengfx.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mengfx.bean.PostReply;
import com.mengfx.mapper.PostReplyMapper;
import com.mengfx.service.PostReplyService;
@Service("postReplyService")
public class PostReplyServiceImpl implements PostReplyService {
	
	@Autowired
	private PostReplyMapper postReplyMapper;

	public List<PostReply> getPostReplyByPostId(Long postId) {
		// TODO Auto-generated method stub
		return postReplyMapper.getPostReplyByPostId(postId);
	}

	public boolean deleteReply(Long replyId) {
		// TODO Auto-generated method stub
		return postReplyMapper.deleteReply(replyId) > 0;
	}

}
